/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 实验评论Entity 实验评论
 * @author superadmin
 * @version 2021-01-26 15:25:22
 */
@TableName(value = "t_v_train_comments")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TVTrainComments extends IdEntity<TVTrainComments> {

	private static final long serialVersionUID = 1L;
	/** F_PARENTID parent_id  :  父评论ID */
	public static final String F_PARENTID = "parentId";
	/** F_USERID user_id  :  用户ID */
	public static final String F_USERID = "userId";
	/** F_PARENTUSERID parent_user_id  :  被评论用户ID */
	public static final String F_PARENTUSERID = "parentUserId";
	/** F_TRAINID train_id  :  实验编号 */
	public static final String F_TRAINID = "trainId";
	/** F_COMMENTS comments  :  评论内容 */
	public static final String F_COMMENTS = "comments";


	/** parentId 父评论ID */@Size(max=50)
	@TableField("parent_id")
	private String parentId;
	/** userId 用户ID */@Size(max=50)
	@TableField("user_id")
	private String userId;
	/** parentUserId 被评论用户ID */@Size(max=50)
	@TableField("parent_user_id")
	private String parentUserId;
	/** trainId 实验编号 */@NotBlank @Size(max=50)
	@TableField("train_id")
	private String trainId;
	/** comments 评论内容 */@Size(max=2000)

	private String comments;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
